<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
            a{
               text-decoration: none;
               font-size: 20px;
               color: blue;
           }
           body{
               background-image: url(fhh.jpg);
           }
           </style>
    <script>
        function deepCopy(obj){
            var o={};
            for(var k in obj){
                o[k]=(typeof obj[k]==='object')? deepCopy(obj[k]):obj[k];
            }
            return 0;
        }
         var p1={name:'jim',subject:{name:['HTML','CSS']}};
         var p2=deepCopy(p1);
         p2.subject.name[0]='JavaScript';
         console.log(p1.subject.name[0]);
         console.log(p2.subject.name[0]);
         console.log(p1==p2);
        </script>
</head>
<body>
        <p><a href="第五章作业.html">返回</a> </p>
</body>
</html>